import { createContext, useContext } from "react";
import type { ColProps } from "../types";

export interface SvContextType {
	/** 列数 */
	col?: ColProps;
	/** 标签宽度 */
	labelWidth?: number;
}

export const SvContext = createContext<SvContextType>({});

export function useSvContext() {
	return useContext(SvContext);
}
